package sz.szsmk.citizencard.util;

/**
 * Created by yangzhengwen on 2017/11/1.
 */

public class ForceExit {

    public interface ForceExitListener {
        void forceExit();
    }

    public ForceExitListener forceExitListener;
    private static ForceExit instance = null;

    private ForceExit() {
    }

    public static ForceExit getInstance() {
        if (instance == null) {
            instance = new ForceExit();
        }
        return instance;
    }

    public void setForceExitListener(ForceExitListener listener) {
        forceExitListener = listener;
    }

    public void logout() {
        forceExitListener.forceExit();
    }
}
